
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@workday/canvas-kit-labs-react-core
Advanced tools
A group of core primitives (i.e. colors, text, etc.)
Includes:
This new type hierarchy is in the process of being introduced into our products. It relies on larger
font sizes/weights to increase legibility and promote reducing density in UI design. Other than the
visual size and weight changes across every level of hierarchy, there are a few naming changes:
type.dataViz1
and type.dataViz2
have been renamed to type.brand1
and type.brand2
,
respectively.
The usage is the same as the current hierarchy, you just need a different import.
import {type} from '@workday/canvas-kit-labs-react-core';
const MyLabel = styled('label')({
...type.body,
...type.variant.label,
});
When the breaking change is made, anyone using the current type guide will need to update the references for
dataViz1
anddataViz2
.
Spacing functions provide margin and padding spacing. These are available with the space
function.
The space
function utilizes the following props:
Margin Props
m
marginmt
margin-topmr
margin-rightmb
margin-bottomml
margin-leftmx
margin-left & margin-rightmy
margin-top & margin-bottomPadding Props
p
paddingpt
padding-toppr
padding-rightpb
padding-bottompl
padding-leftpx
padding-left & padding-rightpy
padding-top & padding-bottomimport {spacing, spacingNumbers} from '@workday/canvas-kit-react-core';
import {space} from '@workday/canvas-kit-labs-react-core';
spacing.s; // 16px
spacingNumbers.s; // 16
...
const Box = styled('div')(space)
<Box p={spacing.xl} pb={64} m={40} mx={10}>
...
</Box>
/*
margin-top: 40px;
margin-right: 10px;
margin-bottom: 40px;
margin-left: 10px;
padding-top: 40px;
padding-right: 40px;
padding-bottom: 64px;
padding-left: 40px;
*/
FAQs
A group of core primitives (i.e. colors, text, etc.)
The npm package @workday/canvas-kit-labs-react-core receives a total of 488 weekly downloads. As such, @workday/canvas-kit-labs-react-core popularity was classified as not popular.
We found that @workday/canvas-kit-labs-react-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.